package cookie

import (
	md52 "crypto/md5"
	"encoding/hex"
)

/**
	设置cookie的key
 */
func GetCookieKey(str string) string {
	md5 := md52.New()
	md5.Write([]byte(str))
	cipherStr := md5.Sum(nil)

	return hex.EncodeToString(cipherStr)
}
